class Domain < ActiveRecord::Base
	belongs_to :table
	has_many :tags

	def self.sort_by_hit_and_limit(row)
	  if row
  		row
  	else
  	  row = 8
  	end
  	find(:all, :order => "hit DESC" , :limit => row)
	end

	
end
